package com.cloud.openfeign;

import com.cloud.constent.Constant;
import com.cloud.entity.CommonResult;
import com.cloud.entity.Payment;
import org.springframework.stereotype.Component;

/**
 * 统一管理外部调用hystrix
 */
@Component
public class PaymentOpenFeignHystrix implements PaymentOpenFeign {
    @Override
    public CommonResult<Payment> select(Long id) {
        return new CommonResult(Constant.ERRORCODE,"implements");
    }
}
